package cn.com.cifi.mars.web.action.integrated;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import cn.com.cifi.mars.common.base.BaseAction;
import cn.com.cifi.mars.service.ApprovalBillService;

@RestController
public class BusinessOAIntegratedController extends BaseAction implements IBusinessOAIntegratedController {

	@Autowired
	ApprovalBillService approvalBillService;

	@Override
	public String getToken(String apiVersion) {
		return approvalBillService.getAuthToken();
	}

	@Override
	public String saveFlow(String apiVersion, String sessionToken, String requestParam) {
		return approvalBillService.saveFlow(sessionToken, requestParam);
	}

	@Override
	public String endFlow(String apiVersion, String sessionToken, String requestParam) {
		return approvalBillService.endFlow(sessionToken, requestParam);
	}

	@Override
	public String deleteFlow(String apiVersion, String sessionToken, String requestParam) {
		return approvalBillService.deleteFlow(sessionToken, requestParam);
	}

	@Override
	public String selectFlowOpinions(String apiVersion, String sessionToken, String requestParam) {
		return approvalBillService.selectFlowOpt(sessionToken, requestParam);
	}

	@Override
	public String selectFlowPath(String apiVersion, String sessionToken, String requestParam) {
		return approvalBillService.selectFlowPath(sessionToken, requestParam);
	}
}
